/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: andres orellana
 * License Type: Evaluation
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class CoordenadaCriteria extends AbstractORMCriteria {
	public final IntegerExpression id;
	public final StringExpression coo_letra;
	public final IntegerExpression coo_fila;
	public final IntegerExpression coo_valor;
	public final StringExpression coo_clave;
	
	public CoordenadaCriteria(Criteria criteria) {
		super(criteria);
		id = new IntegerExpression("id", this);
		coo_letra = new StringExpression("coo_letra", this);
		coo_fila = new IntegerExpression("coo_fila", this);
		coo_valor = new IntegerExpression("coo_valor", this);
		coo_clave = new StringExpression("coo_clave", this);
	}
	
	public CoordenadaCriteria(PersistentSession session) {
		this(session.createCriteria(Coordenada.class));
	}
	
	public CoordenadaCriteria() throws PersistentException {
		this(orm.PinPassPersistentManager.instance().getSession());
	}
	
	public ClienteCriteria createClientecliCriteria() {
		return new ClienteCriteria(createCriteria("clientecli"));
	}
	
	public Coordenada uniqueCoordenada() {
		return (Coordenada) super.uniqueResult();
	}
	
	public Coordenada[] listCoordenada() {
		java.util.List list = super.list();
		return (Coordenada[]) list.toArray(new Coordenada[list.size()]);
	}
}

